package com.example.pattern.visitor;

/**
 * 具体的访问者实现
 *
 * @author FM_南风
 * @date 2024/7/6
 */
public class ConcreteVisitor implements Visitor {
	@Override
	public void visit(ConcreteElementA element) {
		 System.out.println("Visitor is visiting ConcreteElementA");
	 	// 对ConcreteElementA的具体操作
	}

	@Override
	public void visit(ConcreteElementB element) {
	 	System.out.println("Visitor is visiting ConcreteElementB");
		 // 对ConcreteElementB的具体操作
	}
}
